package itheima.d06;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Test {
    public static void main(String[] args) {
        Map<String, List<String>> map =new HashMap<>();
       String key = "江苏";
       List<String> value = List.of("南京","苏州","无锡");

       map.put(key, value);

       String key1 = "山东";
       List<String> value1 = List.of("济南","青岛","烟台");
       map.put(key1, value1);



//        Set<Map.Entry<String, List<String>>> entries = map.entrySet();
//        for (Map.Entry<String, List<String>> entry : entries) {
//            String key2 = entry.getKey();
//            List<String> value2 = entry.getValue();
//            System.out.println(key2+"---"+value2);
//        }
        map.forEach((k,v)-> System.out.println(k+"---"+v));


    }
}
